package com.sdx.console.transaction.dao;

import java.util.Date;
import java.util.List;

import com.ibeetl.admin.core.entity.BaseEntity;
import com.sdx.console.transaction.web.query.FinTransactionRefundQuery;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.core.engine.PageQuery;

import  com.sdx.console.transaction.entity.*;

/**
 * 退款 Dao
 */
@SqlResource("trans.refund")
public interface FinTransactionRefundDao extends BaseMapper<FinTransactionRefund>{
    PageQuery<FinTransactionRefund> queryByCondition(PageQuery query);
    void batchDelFinTransactionRefundByIds( List<String> ids);
    String selectMchId(String refundId);
    FinTransaction selectRemainMoney(String refundId);
    BaseEntity selectAudit(String refundId);
    List<BaseEntity> selectOrderType();
    List<BaseEntity> selectImgsById(String refundId);
    List<RefundExport> queryByConditionExport(FinTransactionRefundQuery condtion);

    List<FinTransactionRefund> findRefundRecord(FinTransactionRefund refund);

    List<FinTransaction> findTranRecord(FinTransactionRefund refund);

    void batchUpdateFinTransactionRefund(List<String> ids, String name, Long id, Date date);

    void updateFinTrans(List<String> ids);
}
